package com.jrx.anytxn.transaction.job.autoPayment.bean;

import com.jrx.anytxn.transaction.entity.TlPaymentLog;
import com.jrx.anytxn.transaction.entity.TlPaymentMapping;

import java.util.ArrayList;
import java.util.List;

/**
 * 还款流水存储bean
 *
 * @author : zhenghaopu
 * 2019/9/25
 */
public class PaymentLogBean {
    /**
     * 还款流水
     */
    private TlPaymentLog tlPaymentLog;
    /**
     * 还款流水列表
     */
    private List<TlPaymentLog> tlPaymentLogList = new ArrayList<>();

    /**
     * 还款流水与订单映射
     */
    private List<TlPaymentMapping> tlPaymentMappingList = new ArrayList<>();

    public TlPaymentLog getTlPaymentLog() {
        return tlPaymentLog;
    }

    public void setTlPaymentLog(TlPaymentLog tlPaymentLog) {
        this.tlPaymentLog = tlPaymentLog;
    }

    public List<TlPaymentMapping> getTlPaymentMappingList() {
        return tlPaymentMappingList;
    }

    public void setTlPaymentMappingList(List<TlPaymentMapping> tlPaymentMappingList) {
        this.tlPaymentMappingList = tlPaymentMappingList;
    }

    public List<TlPaymentLog> getTlPaymentLogList() {
        return tlPaymentLogList;
    }

    public void setTlPaymentLogList(List<TlPaymentLog> tlPaymentLogList) {
        this.tlPaymentLogList = tlPaymentLogList;
    }

    public void addPaymentLog(TlPaymentLog tlPaymentLog){
        this.tlPaymentLogList.add(tlPaymentLog);
    }

    public void addPaymentLogList(List<TlPaymentLog> tlPaymentLogList){
        this.tlPaymentLogList.addAll(tlPaymentLogList);
    }

    public void addPaymentMapping(List<TlPaymentMapping> mappingList){
        this.tlPaymentMappingList.addAll(mappingList);
    }
}
